export interface IMoXiangData {
  title: string;
  content: string[];
}

export interface IHuXiConfig {
  absorbDuration: number;
  stopDuration: number;
  resetDuration: number;
}

export enum BreatheEnum {
  absorb = "吸气",
  stop = "压气",
  reset = "呼气",
}

export const items = [
  {
    type: "subheader",
    title: "7望楼",
    children: [
      {
        icon: "望楼",
      },
      {
        title: "圣三位一体",
        value: 1,
        content: `愿圣三位一体神的能力
现在就降临在我里面吧
降临在我的想法灵魂内心深处吧`,
      },
      {
        title: "宝座",
        value: 2,
        content: `愿宝座的能力
超越时空的能力
照亮237的光降临在我里面吧
愿在我里面恢复神的形象
神的气息神的生命吧
愿在我 我们的教会
我所在的现场
降临空前绝后的应允吧`,
      },
      {
        title: "三时代",
        value: 3,
        content: `请赐给我救活过去 现在 未来 三时代的能力`,
      },
      {
        title: "五个力量",
        value: 5,
        content: `求神加给我五力`,
      },
      {
        title: "空中权柄",
        value: 4,
        content: `赐给我胜过空中掌权者宇宙的能力
愿现在就降临在我里面吧`,
      },

      {
        title: "CVDIP提前",
        value: 6,
        content: `愿神将提前看到CVDIP的应允
现在就赐给我吧`,
      },
      {
        title: "三个院子",
        value: 7,
        content: `请将运转三个院子的能力
现在就倾泻在我的身上吧`,
      },
    ],
  },

  {
    type: "subheader",
    title: "7旅程",
    children: [
      {
        icon: "旅程",
      },
      {
        title: "圣三位一体",
        value: 8,
        content: `求神帮助我踏上圣三位一体神作工的那路`,
      },
      {
        title: "十个奥秘",
        value: 9,
        content: `能胜过一切的十个奥秘
请降临在我的里面吧`,
      },
      {
        title: "十个踏板",
        value: 10,
        content: `在任何情况中都不动摇的十个踏板
请降临在我的里面吧`,
      },
      {
        title: "九个潮流",
        value: 11,
        content: `愿不战而胜 能改变世界的九个潮流
降临在我里面`,
      },
      {
        title: "五个确信",
        value: 12,
        content: `请让我带着必定得胜的五个确信吧`,
      },
      {
        title: "62个生活",
        value: 13,
        content: `让我在教会里享受真正的礼拜和祷告的祝福`,
      },
      {
        title: "兴起发光",
        value: 14,
        content: `所到之处兴起宝座的Camp`,
      },
    ],
  },

  {
    type: "subheader",
    title: "7里程碑",
    children: [
      {
        icon: "里程碑",
      },
      {
        title: "加略山",
        value: 15,
        content: `愿结束了我身上一切咒诅、灾殃、失败的
加略山的应允降临在我里面吧`,
      },
      {
        title: "橄榄山",
        value: 16,
        content: `愿耶稣四十天亲自说明的橄榄山宝座的能力
现在就临到我里面吧`,
      },
      {
        title: "马可家",
        value: 17,
        content: `愿马可家的能力
现在就临到我里面吧`,
      },
      {
        title: "安提阿",
        value: 18,
        content: `安提阿教会的使命
现在就籍着能力临到我里面吧`,
      },
      {
        title: "亚细亚",
        value: 19,
        content: `保罗小组去亚细亚的能力
现在就临到我里面吧`,
      },
      {
        title: "马其顿",
        value: 20,
        content: `来到人生转折点的马其顿的能力
临到我里面吧`,
      },
      {
        title: "罗马",
        value: 21,
        content: `也让我看到罗马吧`,
      },
    ],
  },
];

function transformData(data: any[], content?: string[]): string[] {
  content = content || [];
  for (let i = 0; i < data.length; i++) {
    // if (data[i].title) {
    //   content.push(data[i].title);
    // }
    if (data[i].content) {
      content.push(...data[i].content.split("\n"));
    }
    if (data[i].children) {
      transformData(data[i].children, content);
    }
  }

  return content;
}

export const data: IMoXiangData[] = [
  {
    title: "777的祷告",
    content: transformData(items),
  },
];
export function getStatusColor(value: BreatheEnum) {
  switch (value) {
    case BreatheEnum.absorb:
      return "#38bdf8";
    case BreatheEnum.stop:
      return "#f5a623";
    case BreatheEnum.reset:
      return "#bef264";
    default:
  }
}

export function setQingCheng(value: IHuXiConfig): IHuXiConfig {
  return Object.assign(value, { absorbDuration: 4, stopDuration: 7, resetDuration: 8 });
}

export function setBaiTian(value: IHuXiConfig): IHuXiConfig {
  return Object.assign(value, { absorbDuration: 4, stopDuration: 7, resetDuration: 8 });
}

export function setYeWan(value: IHuXiConfig): IHuXiConfig {
  return Object.assign(value, { absorbDuration: 6, stopDuration: 0, resetDuration: 6 });
}
